﻿using System;
using System.IO;

namespace ZilLion.Core.Unities.UnitiesMethods
{
    /// <summary>
    /// 软件常用路径
    /// </summary>
    public static class AppPathHelper
    {
        static AppPathHelper()
        {
             var appname = Path.GetFileName(System.Reflection.Assembly.GetEntryAssembly().GetName().Name)?? "ZilLionApp";
            AppDataLocalPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), appname);
            AppMyDocumentsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "ZilLionApp", appname);
        }
        /// <summary>
        /// 软件数据文件加
        /// </summary>
        public static string AppDataLocalPath { get; set; }
        /// <summary>
        /// 当前我的文档中文件夹
        /// </summary>
        public static string AppMyDocumentsPath { get; set; }

    }
}